1aea9748a3e0a73e8b82270c01ccf8bb92264f4c,guava-tests/test/com/google/common/math/QuantilesTest.java,QuantilesTest,testPercentiles_index_compute_doubleCollection,#,456

Before Change


  public void testPercentiles_index_compute_doubleCollection() {
    for (int index = 0; index <= 100; index++) {
      double expected = expectedLargeDatasetPercentile(index);
      assertQuantile(index, expected, percentiles().index(index).compute(PSEUDORANDOM_DATASET));
    }
  }

After Change



  public void testPercentiles_index_compute_doubleCollection() {
    for (int index = 0; index <= 100; index++) {
      assertThat(percentiles().index(index).compute(PSEUDORANDOM_DATASET))
          .named("quantile at index " + index)
          .isWithin(ALLOWED_ERROR)
          .of(expectedLargeDatasetPercentile(index));
    }
  }